package com.mall.sun.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "会员id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;

    @ApiModelProperty(value = "登录账号")
    private String nickName;

    @ApiModelProperty(value = "会员密码 长度不大于10个字符")
    private String password;

    @ApiModelProperty(value = "会员姓名")
    private String userName;

    @ApiModelProperty(value = "0-男 1-女 2-匿名")
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "各省行政区号")
    private String province;

    @ApiModelProperty(value = "各市行政区号")
    private String city;

    @ApiModelProperty(value = "会员联系地址")
    private String address;

    @ApiModelProperty(value = "手机电话号码")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "注册时间")
    private LocalDateTime tegTime;

    @ApiModelProperty(value = "积分 默认值0")
    private Integer score;


}
